#!/bin/sh
#
# Copyright 2011,2013 Ettus Research LLC
# Copyright 2018 Ettus Research, a National Instruments Company
#
# SPDX-License-Identifier: GPL-3.0-or-later
#

if [ "$1" = "configure" ]; then
    cp @CMAKE_INSTALL_PREFIX@/lib/uhd/utils/uhd-usrp.rules /etc/udev/rules.d/uhd-usrp.rules
    udevadm control --reload-rules
    udevadm trigger
    ldconfig
fi
